import methods from '@/api/base'

const index = {
  async isLogin (app) {
    var result = null;
    await methods.get("/isLogin", null, app, (resp) => {
      result = resp
    })
    return result
  },
  getUserInfo (app, callback) {
    return methods.get('/userinfo', null, app, callback).data
  },
  getToken (app) {
    methods.get('/token', null, app, null)
  }
}

export default index;
